/*
 * Copyright (c) 2020. bmy
 */
import "@pageLess/About.less";
import { Component, Vue } from 'vue-property-decorator';
import { AboutLogic } from "@logic/page/about.logic";
import { RawLocation, Route } from 'vue-router';
import { VueCustomize, RouterMeta } from "@logic/base.type";
import { Autowired } from "@ann/ioc.annotation";

@Component
export default class About extends VueCustomize  {

  @Autowired(About)
  private logic!: AboutLogic<About>

  private RouterMeta: RouterMeta = {
    title: '关于我页面',
    showNav: true,
    isLogin: true
  };

  public async created () {
    await this.logic.StartUp();
  };

  // 路由拦截器
  beforeRouteEnter (to: Route, from: Route, next: (to?: RawLocation | false | ((vm: Vue) => void)) => void) {
    next();
  }

  protected render () {
    return (
      <div class="About">
        About
      </div>
    )
  }
}
